//
//  JKRMeViewController.m
//  百思不得姐
//
//  Created by Lucky on 16/2/29.
//  Copyright © 2016年 Lucky. All rights reserved.
//

#import "JKRMeViewController.h"

@interface JKRMeViewController ()

@end

@implementation JKRMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"我的";
    
    UIBarButtonItem *settingItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"mine-setting-icon"] highLightedImage:[UIImage imageNamed:@"mine-setting-icon-click"] target:self action:@selector(settingClick)];
    UIBarButtonItem *nightModeItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"mine-moon-icon"] highLightedImage:[UIImage imageNamed:@"mine-moon-icon-click"] target:self action:@selector(nigthModeClick)];
    
    self.navigationItem.rightBarButtonItems = @[settingItem, nightModeItem];
    
    self.view.backgroundColor = JKRGlobalBackgroudColor;
}

- (void)viewDidDisappear:(BOOL)animated
{
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    UIViewController *vc = [[UIViewController alloc] init];
    vc.view.backgroundColor = [UIColor blueColor];
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)settingClick
{
    JKRLogFunc;
}

- (void)nigthModeClick
{
    JKRLogFunc;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
